home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmTest9
- AutoRedraw = -1 'True
- BorderStyle = 0 'None
- ClientHeight = 3360
- ClientLeft = 0
- ClientTop = 0
- ClientWidth = 3504
- ControlBox = 0 'False
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3360
- ScaleWidth = 3504
- ShowInTaskbar = 0 'False
- Begin VB.ComboBox cmbMessages
- Height = 288
- Left = 900
- Sorted = -1 'True
- TabIndex = 8
- Text = "Combo1"
- Top = 120
- Width = 2472
- End
- Begin VB.CommandButton cmdSend
- Caption = "Send Message"
- Height = 372
- Left = 1980
- TabIndex = 7
- Top = 1380
- Width = 1392
- End
- Begin VB.TextBox txtLParam
- Height = 288
- Left = 900
- TabIndex = 3
- Top = 960
- Width = 2472
- End
- Begin VB.TextBox txtWParam
- Height = 288
- Left = 900
- TabIndex = 1
- Top = 540
- Width = 2472
- End
- Begin VB.Label lblResult
- Height = 252
- Left = 900
- TabIndex = 6
- Top = 1440
- Width = 852
- End
- Begin VB.Label Label4
- Caption = "Result:"
- Height = 252
- Left = 120
- TabIndex = 5
- Top = 1440
- Width = 672
- End
- Begin VB.Label Label3
- Caption = "lParam:"
- Height = 252
- Left = 120
- TabIndex = 4
- Top = 1020
- Width = 732
- End
- Begin VB.Label Label2
- Caption = "wParam:"
- Height = 252
- Left = 120
- TabIndex = 2
- Top = 600
- Width = 732
- End
- Begin VB.Label Label1
- Caption = "Message:"
- Height = 252
- Left = 120
- TabIndex = 0
- Top = 180
- Width = 732
- End
- Attribute VB_Name = "frmTest9"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdSend_Click()
- Dim w As sgWindow.Window
- Set w = frmMain.g_wndTest
- If Len(txtWParam.Text) = 0 Then txtWParam.Text = "0"
- If Len(txtLParam.Text) = 0 Then txtLParam.Text = "0"
- lblResult.Caption = CStr(w.SendMessage(GetMessageCode(cmbMessages.Text), CLng(txtWParam.Text), CLng(txtLParam.Text)))
- End Sub
- Private Sub Form_Load()
- FillMessages cmbMessages
- End Sub
-